package com.huanrong.servlet;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.GenericServlet;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

public class DemoGenericServlet extends GenericServlet
{
    
    
    /** @Fields serialVersionUID: */
      	
    private static final long serialVersionUID = -794850646670315237L;

    @Override
    public void service(ServletRequest request, ServletResponse response)
        throws ServletException, IOException
    {
        response.setContentType("text/html");
        PrintWriter write = response.getWriter();
        write.println("<html>");
        write.println("<body>");
        write.println("<h2>" + this.getClass().getName() + "</h2>");
        write.println("</body>");
        write.println("</html>");
        write.flush();
        write.close();
        
    }
    
}
